Skip to content

fix(text): avoid trailing None for paginated response + scalar --query#10087

Closed
mjfxjas wants to merge 2 commits intoaws:developfrom
mjfxjas:fix/cfn-describe-changeset-text-none-10061
Closed

fix(text): avoid trailing None for paginated response + scalar --query#10087
mjfxjas wants to merge 2 commits intoaws:developfrom
mjfxjas:fix/cfn-describe-changeset-text-none-10061

Conversation

@mjfxjas
Copy link
Copy Markdown

@mjfxjas mjfxjas commented Feb 18, 2026

Fixes #10061.

When an operation is paginated, the text formatter previously applied --query per page. For scalar queries, if subsequent pages did not include the queried field, text output could include an extra trailing None line.

This change buffers the full paginated result before applying --query when using --output text, matching the behavior of the JSON/table formatters.

  • Adds a unit test covering the regression.

@mjfxjas
Copy link
Copy Markdown
Author

mjfxjas commented Feb 20, 2026

Friendly follow-up on this behavior fix.

This addresses trailing None output when using paginated responses with scalar --query, and keeps output consistent and clean for scripting use cases. If useful, I can add an additional regression test case in the preferred location.

@RyanFitzSimmonsAK RyanFitzSimmonsAK self-assigned this Mar 2, 2026
@RyanFitzSimmonsAK
Copy link
Copy Markdown
Contributor

Hi @mjfxjas, thanks for this pull request. We've received many issues in the past about the interaction between --query and --output text. We chose to document that interaction instead of fixing it because it would be a breaking change to people reliant on the existing pagination behavior. So unfortunately, this pull request is breaking and we will be closing it. Thank you for contributing.

@RyanFitzSimmonsAK RyanFitzSimmonsAK removed their assignment Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Describing ChangeSet with '--output text' flag returns invalid result

2 participants